package nimble.dynamic.proxy.operation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyOperationProxy implements InvocationHandler {
    
    private static final Logger logger= LoggerFactory.getLogger(MyOperationProxy.class);

    private MyOperation target;

    public MyOperationProxy(MyOperation target)
    {
       this.target=target;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        method.invoke(target,args);
        return null;
    }
}
